/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Entity
public final class QuestionBean {
    @Property(nameInDb = "_id")
    @Id
    private Long id;

    private String answerAndAnalyze;
    private boolean needReplenishAnswer;

    private String questionAndOption;
    @NotNull
    private String questionId;
    
    private String questionType;
    private long updateTime;
    @Generated(hash = 1191514992)
    public QuestionBean(Long id, String answerAndAnalyze, boolean needReplenishAnswer, String questionAndOption, @NotNull String questionId, String questionType, long updateTime) {
        this.id = id;
        this.answerAndAnalyze = answerAndAnalyze;
        this.needReplenishAnswer = needReplenishAnswer;
        this.questionAndOption = questionAndOption;
        this.questionId = questionId;
        this.questionType = questionType;
        this.updateTime = updateTime;
    }

    @Generated(hash = 842286453)
    public QuestionBean() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setAnswerAndAnalyze(String answerAndAnalyze){
        this.answerAndAnalyze = answerAndAnalyze;
    }
    @Nullable
    public String getAnswerAndAnalyze() {
        return this.answerAndAnalyze;
    }

    public void setQuestionId(String questionId){
        this.questionId = questionId;
    }
    public void setNeedReplenishAnswer(boolean needReplenishAnswer){
        this.needReplenishAnswer = needReplenishAnswer;
    }

    public void setQuestionAndOption(String questionAndOption){
        this.questionAndOption = questionAndOption;
    }
    public void setQuestionType(String questionType){
        this.questionType = questionType;

    }
    public void setUpdateTime(long updateTime){
        this.updateTime = updateTime;
    }
    public boolean getNeedReplenishAnswer() {
        return this.needReplenishAnswer;
    }

    @NotNull
    public String getQuestionAndOption() {
        return this.questionAndOption;
    }

    @NotNull
    public String getQuestionId() {
        return this.questionId;
    }

    @NotNull
    public  String getQuestionType() {
        return this.questionType;
    }

    public long getUpdateTime(){
        return this.updateTime;
    }

    @NotNull
    public String toString() {
        return "Question(questionId=" + this.questionId + ", questionType=" + this.questionType + ", questionAndOption=" + this.questionAndOption + ", answerAndAnalyze=" + this.answerAndAnalyze + ", needReplenishAnswer=" + this.needReplenishAnswer + ", videoVos=" + ')';
    }
}